﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MessageBoard.aspx.cs" Inherits="Directory.Web.MessageBoard" ValidateRequest="true" MasterPageFile="~/DefaultMasterPage.master" Theme="Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server" >
	<title><% = Directory.Web.WebSettings.GetInstance().SiteName %> — 留言板</title>
</asp:Content>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
	<div class="MessageBoard">
		<asp:Repeater ID="Repeater1" runat="server">
			<ItemTemplate>
				<div class="MessageAll">
					<h4><%# Eval("Title")%><span class="MessageInfo">作者:<%# Eval("Author")%>　时间<%# Eval("ReleaseDate","{0:yyyy-MM-dd HH:mm}")%></span></h4>
					<p>
						<div class="Message_content"><%# Eval("Content")%></div>
						<div class="replay"><b>管理员回复:</b><%# Eval("Reply")%></div>
					</p>
				</div>
			</ItemTemplate>
		</asp:Repeater>
		<p class="pageBreake">
			<asp:HyperLink ID="hplFirstPage" runat="server">第一页</asp:HyperLink>&nbsp;
			<asp:HyperLink ID="hplPrePage" runat="server">上一页</asp:HyperLink>&nbsp;
			第&nbsp;<asp:Label ID="lbCurrentPage" runat="server" Text=""></asp:Label>&nbsp;页&nbsp;
			<asp:HyperLink ID="hplNextPage" runat="server">下一页</asp:HyperLink>&nbsp;
			<asp:HyperLink ID="hplLastPage" runat="server">最后一页</asp:HyperLink>
		</p>
	</div>
	
	<div class="sendMessage">
		<h3>发表新留言</h3>
			<p><b>标题:</b><asp:TextBox ID="txtTitle" runat="server" CssClass="inputText"></asp:TextBox>
			<b>作者:</b><asp:TextBox ID="txtAuthor" runat="server" CssClass="inputText"></asp:TextBox></p>
		<fieldset>
			<legend><b>内容:</b></legend>
			<asp:TextBox ID="txtContent" runat="server"  TextMode="MultiLine" Height="80" Width="100%" CssClass="inputText"></asp:TextBox>
		</fieldset>		
		<asp:Button ID="btnSubmit" runat="server" Text="提 交" OnClick="btnSubmit_Click" CssClass="inputButton" />		
	</div>
</asp:Content>
